<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>添加店铺</title>
    <script type='text/javascript' src='http://localhost/baidusale/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/baidusale/hdphp/hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<link href='http://localhost/baidusale/hdphp/hdjs/css/hdvalidate.css' rel='stylesheet' media='screen'>
<script src='http://localhost/baidusale/hdphp/hdjs/js/hdjs.js'></script>
<script src='http://localhost/baidusale/hdphp/hdjs/js/hdvalidate.js'></script>
<script src='http://localhost/baidusale/hdphp/hdjs/js/slide.js'></script>
<script src='http://localhost/baidusale/hdphp/hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
HOST = '<?php echo $GLOBALS['user']['HOST'];?>';
ROOT = '<?php echo $GLOBALS['user']['ROOT'];?>';
WEB = '<?php echo $GLOBALS['user']['WEB'];?>';
URL = '<?php echo $GLOBALS['user']['URL'];?>';
APP = '<?php echo $GLOBALS['user']['APP'];?>';
COMMON = '<?php echo $GLOBALS['user']['COMMON'];?>';
HDPHP = '<?php echo $GLOBALS['user']['HDPHP'];?>';
HDPHPDATA = '<?php echo $GLOBALS['user']['HDPHPDATA'];?>';
HDPHPEXTEND = '<?php echo $GLOBALS['user']['HDPHPEXTEND'];?>';
MODULE = '<?php echo $GLOBALS['user']['MODULE'];?>';
CONTROLLER = '<?php echo $GLOBALS['user']['CONTROLLER'];?>';
ACTION = '<?php echo $GLOBALS['user']['ACTION'];?>';
STATIC = '<?php echo $GLOBALS['user']['STATIC'];?>';
HDPHPTPL = '<?php echo $GLOBALS['user']['HDPHPTPL'];?>';
VIEW = '<?php echo $GLOBALS['user']['VIEW'];?>';
PUBLIC = '<?php echo $GLOBALS['user']['PUBLIC'];?>';
CONTROLLERVIEW = '<?php echo $GLOBALS['user']['CONTROLLERVIEW'];?>';
HISTORY = '<?php echo $GLOBALS['user']['HISTORY'];?>';
</script>
    <link href='http://localhost/baidusale/hdphp/Extend/Org/bootstrap/css/bootstrap.min.css' rel='stylesheet' media='screen'>
<script src='http://localhost/baidusale/hdphp/Extend/Org/bootstrap/js/bootstrap.min.js'></script>
                <!--[if lte IE 6]>
                <link rel="stylesheet" type="text/css" href="http://localhost/baidusale/hdphp/Extend/Org/bootstrap/ie6/css/bootstrap-ie6.css">
                <![endif]-->
                <!--[if lt IE 9]>
                <script src="http://localhost/baidusale/hdphp/Extend/Org/bootstrap/js/html5shiv.min.js"></script>
                <script src="http://localhost/baidusale/hdphp/Extend/Org/bootstrap/js/respond.min.js"></script>
                <![endif]-->
    <link type="text/css" rel="stylesheet" href="http://localhost/baidusale/Application/Admin/View/Store/css/css.css"/>
    <style type="text/css">
        .checkbox{
             margin-left:5px;
             width:90px;
             margin-top: 10px;
        }
        textarea{
            width: 300px;
            height: 100px;
        }
    </style>
</head>
<body>
<div class="wrap">
    <div class="title-header">添加商铺</div>
    <form action="" method="post" class="form-inline hd-form" enctype="multipart/form-data">
        <table class="table1">
            <tr>
                <th class="w100">商铺名称</th>
                <td class="w100">
                    <input type="text" name="name" class="w200"/> 
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">所属分类</th>
                <td>
                    <select name="bd_category_cid">                 
                    <option value="1">请选择所属分类</option>
                    <?php if(is_array($cateData)){?><?php  foreach($cateData as $key=>$v){ ?>
                       <option value="<?php echo $v['cid'];?>"><?php echo $v['cname'];?></option>
                    <?php }}?>
                    </select>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">所属城市</th>
                <td>
                    <select name="bd_city_ctid" class="w200">
                        <option value="1">请选择所属地域</option>
                        <?php if(is_array($cityData)){?><?php  foreach($cityData as $key=>$v){ ?>
                            <option value="<?php echo $v['ctid'];?>"><?php echo $v['_name'];?></option> 
                        <?php }}?>
                    </select>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">起送价</th>
                <td><input type="text" name="start_price" class="w200"/></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">配送费(现)</th>
                <td><input type="text" name="sendprice" class="w200"/></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">配送费(原)</th>
                <td><input type="text" name="old_sendprice" class="w200"/></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">平均送餐时间</th>
                <td><input type="text" name="sendtime" class="w200"/></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">营业时间</th>
                <td>开始:&nbsp;&nbsp;<input type="text" name="startime" class="w200"/></td>
                <td>结束:&nbsp;&nbsp;<input type="text" name="endtime" class="w200"/></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">店面图</th>
                <td><input type="file" name="store_picture" class="w200" /></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">店铺标签</th>
                <td>                  
                    <?php if(is_array($tagData)){?><?php  foreach($tagData as $key=>$v){ ?>
                        <label class="checkbox-inline">
                        <?php echo $v['tagname'];?>
                            <input type="checkbox" value="<?php echo $v['tid'];?>" name="tagname[]" class="check_input">
                        </label>
                    <?php }}?>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">商铺法人</th>
                <td><input type="text" name="uid" class="w200"/></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">联系电话</th>
                <td><input type="text" name="phone" class="w200"/></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">商铺地址</th>
                <td><script type="text/javascript" charset="utf-8" src="http://localhost/baidusale/hdphp/Extend/Org/Ueditor/ueditor.config.js"></script><script type="text/javascript" charset="utf-8" src="http://localhost/baidusale/hdphp/Extend/Org/Ueditor/ueditor.all.min.js"></script><script type="text/javascript">UEDITOR_HOME_URL="http://localhost/baidusale/hdphp/Extend/Org/Ueditor/"</script><script id="hd_store_address" name="store_address" type="text/plain"></script>
        <script type='text/javascript'>
        $(function(){
                var ue = UE.getEditor('hd_store_address',{
                serverUrl:'http://localhost/baidusale/index.php?m=Admin&c=Store&a=ueditor_upload&water='//图片上传脚本
                ,zIndex : 0
                ,initialFrameWidth:"300" //宽度1000
                ,initialFrameHeight:"200" //宽度1000
                ,imagePath:''//图片修正地址
                ,autoHeightEnabled:false //是否自动长高,默认true
                ,autoFloatEnabled:false //是否保持toolbar的位置不动,默认true
                ,toolbars:[['FullScreen', 'Bold','simpleupload','insertcode']]//工具按钮
                ,initialStyle:'p{line-height:1em; font-size: 14px; }'
            });
        })
        </script></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">最近地铁</th>
                <td><input type="text" name="subway_address" class="w200"/></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">店铺公告</th>
                <td><textarea name="ads" id="" cols="30" rows="10"></textarea></td>
                <td></td>
            </tr>
            <tr><td></td><td></td><td></td></tr>  
            <tr><td></td><td></td><td></td></tr>  
            <tr><td></td><td></td><td></td></tr>  
            <tr><td></td><td></td><td></td></tr>     
        </table>
        <div class="position-bottom">
            <input type="submit" class="hd-success" value="添加商铺"/>
        </div>
    </form>
</div>
</body>
</html>